
package com.netpay.correspondentbank.security;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.acegisecurity.ui.webapp.AuthenticationProcessingFilter;


public class NetpayAuthenticationProcessingFilter extends AuthenticationProcessingFilter {
    
    public NetpayAuthenticationProcessingFilter() {
    }  
    
	 
	@SuppressWarnings("unchecked")
	protected String obtainPassword(HttpServletRequest request) {

        String organization = request.getParameter("organizationId");
    	String user = request.getParameter(ACEGI_SECURITY_FORM_USERNAME_KEY);
        String pass = request.getParameter(ACEGI_SECURITY_FORM_PASSWORD_KEY);
        
        request.setAttribute(ACEGI_SECURITY_FORM_USERNAME_KEY, user);
       
        pass = "passValidated"; 
        
        try {
        	
        } catch (Exception e) {
        	// TODO Auto-generated catch block
			e.printStackTrace();			
		}
            
          
        	
        	return pass;
        
        
        	
    }
    

	
	
	
	
}

